-- GENERATED SPELL FOR [Grubthor] --


function spell0_14477(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_14477', 570, 1)
end

function Sorts_14477(pUnit, Event)
local choix_sorts_14477 = math.random(0, 0)
if choix_sorts_14477 == 0 then
pUnit:RegisterEvent('spell0_14477', 1, 1)
end
end

function mob14477_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14477', math.random(1500, 3000), 1)
end

function mob14477_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14477_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14477_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14477, 1, 'mob14477_Action')
RegisterUnitEvent(14477, 2, 'mob14477_Leave')
RegisterUnitEvent(14477, 3, 'mob14477_Kill')
RegisterUnitEvent(14477, 4, 'mob14477_Die')
